export class RoleInfo {
    id: number;
    name: string;
    slug: string;
    description: string;
    level: number;
    belong: string;
    deleted_at: string;
    created_at: string;
    updated_at: string;
    constructor() {
        this.id = 0;
        this.name = '';
        this.slug = '';
        this.description = '';
        this.level = 0;
        this.belong = '';
        this.deleted_at = '';
        this.created_at = '';
        this.updated_at = '';
    }
}

export class RoleList {
    list: RoleInfo[];
    constructor() {
        this.list = new Array<RoleInfo>();
    }
}

export class AddRole {
    name: string;
    slug: string;
    description: string;
    level: number;
    belong: string;
    constructor() {
        this.name = '';
        this.slug = '';
        this.description = '';
        this.level = 1;
        this.belong = 'admin';
    }
}

export class EditRole {
    id: number;
    name: string;
    slug: string;
    description: string;
    level: number;
    belong: string;
    constructor() {
        this.id = 0;
        this.name = '';
        this.slug = '';
        this.description = '';
        this.level = 1;
        this.belong = 'admin';
    }
}